package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.XkSensorAlarmLogDao;
import wqh.domain.XkSensorAlarmLog;
import wqh.service.XkSensorAlarmLogService;


import java.util.List;

/**
 * Created by wqh on 2017/1/13.
 */
@Service("xkSensorAlarmLogService")
public class XkSensorAlarmLogServiceImpl implements XkSensorAlarmLogService {

    @Autowired
    private XkSensorAlarmLogDao dao;


    @Override
    public void save(XkSensorAlarmLog entity) {
        this.dao.save(entity);
    }

    @Override
    public void update(XkSensorAlarmLog entity) {
        this.dao.update(entity);
    }

    @Override
    public void delete(XkSensorAlarmLog entity) {
        this.dao.delete(entity);
    }

    @Override
    public void deleteAll() {
        this.dao.deleteAll();
    }

    @Override
    public List<XkSensorAlarmLog> findAll() {
        return this.dao.findAll();
    }

    @Override
    public XkSensorAlarmLog findById(Long id) {
        return this.dao.findById(id);
    }
}
